package com.bp.hearthealth.pulse.lnapps.bp_ui.bp_fragment.bp_tracker.bp_bean

import com.bp.hearthealth.pulse.lnapps.R
import com.bp.hearthealth.pulse.lnapps.bp_extension.UIHelperBp

enum class BpBloodPressureFilter {
    LATEST_DATA, LATEST_24_HOURE_DATA, AVERAGE_DATA, MAX_DATA, MIN_DATA;

    companion object {
        fun mapToString(status: BpBloodPressureFilter): String {
            return when (status) {
                LATEST_DATA -> UIHelperBp.getString(R.string._blood_pressure_view_type_latest_str)
                LATEST_24_HOURE_DATA -> UIHelperBp.getString(R.string._blood_pressure_view_type_24_hour_str)
                AVERAGE_DATA -> UIHelperBp.getString(R.string._blood_pressure_view_type_average_str)
                MAX_DATA -> UIHelperBp.getString(R.string._blood_pressure_view_type_max_str)
                MIN_DATA -> UIHelperBp.getString(R.string._blood_pressure_view_type_min_str)
            }
        }
    }
}